package com.study.ju.entity;

/**
 * @author 陈涛
 * @description:
 * @Date 2019/6/29 10:59
 */
public class Books {
    private int num=10;

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }
    public void subtractionNum() {
        try {
            Thread.sleep(100);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        if(num>0){
            num=num-1;
        }
        if(num<0){
            System.out.println("结果testNoLock11" + num);
        }

    }
}
